<?php

/**
* Default Routes
*
*/

$route['default_controller'] = "frontend";

//Users
$route['user_login'] = 'users/users/login';
$route['logout'] = 'users/users/logout';
$route['dang-ky'] = 'customers/customer/create';
$route['dang-nhap'] = 'customers/customer/login';

//Tin tuc
$route['tin-tuc'] = 'news/news/index';
$route['tin-tuc/(:any)/(:any)'] = 'news/news/news_detail/$2';
$route['tin-tuc/(:any)'] = 'news/news/news_category/$1';

$route['news'] = 'news/news/index';
$route['news/(:any)/(:any)'] = 'news/news/news_detail/$2';
$route['news/(:any)'] = 'news/news/news_category/$1';

$route['tinh-thanh'] = 'restaurant/restaurant/index';
$route['tinh-thanh/(:any)'] = 'restaurant/restaurant/index/$1';

$route['dish'] = 'dish/dish/index';
$route['tag'] = 'dish/dish/index';
$route['dish/(:any)/(:any)'] = 'dish/dish/dish_detail/$2';
$route['dish/(:any)'] = 'dish/dish/dish_category/$1';
$route['tag/(:any)'] = 'dish/dish/dish_tag/$1';

$route['publicdish'] = 'dish/dish/dish_public';

$route['quan-an'] = 'restaurant/restaurant/detail/';
$route['restaurant/(:any)'] = 'restaurant/restaurant/detail/$1';


$route['session/(:any)'] = 'frontend/session/$1';
$route['login/(:any)'] = 'frontend/login/$1';
$route['logout'] = 'frontend/logout';
$route['sitemap\.xml'] = "sitemap";

$route['templates/frontend/css/min.css'] = "compress/index/css";
$route['templates/frontend/js/min.js'] = "compress/index/js";